package cn.sdormitory.knowledgebase.dao;

import cn.sdormitory.knowledgebase.pojo.StudyQuestions;
import cn.sdormitory.knowledgebase.pojo.StudySkills;
import cn.sdormitory.knowledgebase.vo.*;
import cn.sdormitory.sys.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudySkillsDao extends BaseMapper<StudySkills> {

    List<StudySkillsVo> getStudySkillsList(@Param("title") String title, @Param("type") Integer type);

    List<StudyQuestions> getRelatedQuestionsList(@Param("skillsId") Integer skillsId,@Param("category") Integer category);

    List<StudyQuestions> getUnRelatedQuestionsList(@Param("skillsId") Integer skillsId,@Param("category") Integer category);

    List<SkillBatchVO> getSkillsBatchList(Integer skillId);

    List<RelatedUserVo> getRelatedUserList(@Param("batchId") Integer batchId, @Param("userName") String userName,@Param("deptId") Integer deptId);

    List<RelatedUserVo> getUnRelatedUserList(@Param("batchId") Integer batchId, @Param("userName") String userName,@Param("deptId") Integer deptId);


    //app
    List<AppSkillsBatchUserVo> getAppSkillsBatchByUserId(Integer userId);

    List<StudyQuestionsVo> getAppExamQuestionsById(Integer id);

    List<StudyQuestionsVo> getAppExamQuestionsResultByExamId(Integer examId);

    List<AppUserAnswerRecordVo> getAppUserAnswerRecordList(Integer userId);


}
